-- GENERATED SPELL FOR [Ravage] --


function spell0_8300(pUnit, Event) --@Infected Bite,n/a--
pUnit:FullCastSpellOnTarget(7367,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8300', 30000, 1)
end

function spell1_8300(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(19448,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8300', 30000, 1)
end

function Sorts_8300(pUnit, Event)
local choix_sorts_8300 = math.random(0, 1)
if choix_sorts_8300 == 0 then
pUnit:RegisterEvent('spell0_8300', 1, 1)
end
if choix_sorts_8300 == 1 then
pUnit:RegisterEvent('spell1_8300', 1, 1)
end
end

function mob8300_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8300', math.random(1500, 3000), 1)
end

function mob8300_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8300_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8300_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8300, 1, 'mob8300_Action')
RegisterUnitEvent(8300, 2, 'mob8300_Leave')
RegisterUnitEvent(8300, 3, 'mob8300_Kill')
RegisterUnitEvent(8300, 4, 'mob8300_Die')
